# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy


class PianoScoreItem(scrapy.Item):
    # 基础信息
    title = scrapy.Field()  # 标题
    score_num = scrapy.Field()  # 编号
    singer = scrapy.Field()  # 歌手
    click_count = scrapy.Field()  # 点击次数
    description = scrapy.Field()  # 简介

    # 图片相关（ImagesPipeline要求）
    image_urls = scrapy.Field()  # 图片URL列表（框架专用）
    image_url = scrapy.Field()  # 图片原始URL（单个）
    image_data = scrapy.Field()  # 图片二进制数据

    # PDF相关（FilesPipeline要求）
    file_urls = scrapy.Field()  # PDF URL列表（框架专用）
    file_url = scrapy.Field()  # PDF原始URL（单个）
    file_data = scrapy.Field()  # PDF二进制数据
